***Use year_coeff_prag_indep.dta***

**test for a linear trend**
reg prag time
reg symdis time
reg symind time
reg male time
reg female time
reg deepgreen time
reg lightgreen time
reg indep time
reg lightblue time
reg deepblue time
reg minnan time
reg hakka time
reg mainlander time

** Figure 1**
label var prag "Pragmatic ***"
tsset year
tsline prag, legend(on)

**Figure 2: year and proportion of pragmatic voters by sex**
tsset year
tsline male female, lp(solid longdash) legend(label(1 "Male **") label(2 "Female ***"))

**Figure 3: year and proportion of pragmatic voters by party id**
tsset year
tsline deepgreen lightgreen indep lightblue deepblue, lp(solid dash_dot shortdash longdash dash) lcolor(dkgreen eltgreen red eltblue dknavy) legend(label(1 "Deep Green") label(2 "Light Green") label(3 "Independent *") label(4 "Light Blue *") label(5 "Deep Blue **"))

**Figure 4: year and proportion of pragmatic voters by ethnicity**
tsset year
tsline minnan hakka mainlander, lp(solid longdash shortdash) lcolor(green red blue) legend(label(1 "Minnan ***") label(2 "Hakka") label(3 "Mainlander"))